<?php if ($this->invitation_list) { foreach($this->invitation_list as $key => $val) { ?>
<li>
	<a href="people/<?php echo $val['user_info']['url_token']; ?>" class="add_user_f"><img src="<?php echo get_avatar_url($val['user_info']['uid'], 'mid'); ?>" alt="<?php echo $val['user_info']['user_name']; ?>" title="<?php echo $val['user_info']['user_name']; ?>" /></a>
	<?php if ($val['active_status'] == 1) { ?>
	<p class="i_right i_tr">激活成功</p>
	<?php } else if ($val['active_status'] == -1) { ?>
	<p class="i_right i_tr">邀请已取消</p>
	<?php } else { ?>
	<p class="i_right i_tr">邀请已发送<br />
		<a href="javascript:;" onClick="ajax_request(G_BASE_URL + '/invitation/ajax/invite_cancel/invitation_id-<?php echo $val['invitation_id']; ?>');">取消邀请</a> &nbsp; <a href="javascript:;" onclick="ajax_request(G_BASE_URL + '/invitation/ajax/invite_resend/invitation_id-<?php echo $val['invitation_id']; ?>');">重发邀请</a>
	</p>
	<?php } ?>

	<span class="p_name"><a href="mailto:<?php echo $val['invitation_email']; ?>"><?php echo $val['invitation_email']; ?></a></span>
	<?php if ($val['active_status'] == 0) { ?>
	<p class="p_txt">若对方邮箱丢失，可复制下面的链接通过QQ等发送给TA</p>
	<p class="x_pad"><input type="text" value="<?php echo get_js_url('/account/register/email-' . urlencode($val['invitation_email']) . '__icode-' . $val['invitation_code']); ?>" class="i_glotxtClass x_txtinput" onFocus="$.focus(this,'');"/></p>
	<?php } else { ?>
	<p class="p_txt">&nbsp;</p>
	<?php } ?>
</li>

<?php } } ?>